package bruce.java;

/**
 * @author TaoTaojs
 * @date 2021/3/16 下午3:31
 * <p>Description</p>
 * <h2>功能描述</h2>
 *
 * <h3>主要功能：</h3>
 * <ol>
 *     <li></li>
 * </ol>
 * <h3>关联类</h3>
 * <p>参考链接：</p>
 * <h2>更新日志</h2>
 * [author]        [time]                      [version]          [desc]
 * TaoTaojs        2021/3/16 下午3:31             V1.0
 */
@SuppressWarnings("ALL")
public class By5_3 {

    private boolean status;

    public static void main(String[] args) {
        By5_3 by = new By5_3();
        by = null;
        System.gc();
    }

    @Override
    protected void finalize() throws Throwable {
        if(status){
            System.out.println("1234");
        } else {
            System.out.println("abcd");
        }
    }
}
